// 封装登录注册页相关接口
import request from '@/utils/request.js'

// 获取手机短信验证码
export const getPhoneCodeService = (phone) => {
	return request({
		url: '/auth/code',
		method: 'POST',
		data: {
			phone
		}
	})
}

// 用户注册/登录
export const userAuthService = (data) => {
	return request({
		url: '/auth',
		method: 'POST',
		data
	})
}